DISCUSSION
The
ATSUSetLineControls function sets one or more text layout attribute value(s) for a single line in a text layout object. Note that when you set a text layout attribute value for a line, this value will override the value of the text layout attribute set for the text layout object containing the line. This is true even if the attributes for the line are set before those of the entire text layout object containing the line. If you wish to set the text layout attribute values for an entire text layout object, see the function
ATSUSetLayoutControls.
ATSUI functions that operate on a line of text like
ATSUDrawText,
ATSUMeasureText,
ATSUMeasureTextImage, and
ATSUGetGlyphBounds, use text layout attributes that have been set by calling
ATSUSetLineControls to calculate dimensions. If none have been set for the line, they use those set for the text layout object containing the line. If none have been set for the text layout object containing the line, ATSUI assigns them their default value. Default text layout attribute values are described in
Table C-2.